<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>test</title>


</head>
<body>
<div>
    <input type="button" value="sadfasdfasf" onclick="test()">
    <input type="button" value="22222222222222" id="test">
</div>


<script src="js/jquery-1.11.3.min.js"></script>
<script>
    $(function () {
        $("#test").click(function () {
            $.post("localhost:8081/findUnit", function (data) {
                console.log(res);
                alert("2222222222222");
                console.log(22222222222);
            })
        });


    });

    function test() {
        console.log(222222222222);
    };

</script>

</body>
</html>
